﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewsSmallClassForm.aspx.cs" Inherits="News_NewsSmallClassForm" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>当前位置:新闻管理→新闻小类编辑</title>
	<link href="../css/css.css" rel="stylesheet" type="text/css" />
	<!--#include file="../js/KeyControl.js"-->
	<base target="_self" />	
	<script type="text/javascript" language="JavaScript">
		function CheckFormMenu()
		{		
//		
//		    if(document.form1.ddlBigClass.value == "0")
//			{
//				alert("请选择大类！");
//				document.form1.ddlBigClass.focus();
//				return false;
//			}
		    if(document.form1.txtSmallClassName.value.length >20)
		    {
			    alert("小类名称字符超过有效长度！");
			    document.form1.txtSmallClassName.focus();
			    return false;
		    }	
		       var btnSave=window.document.getElementById("btnSave");
		       if(btnSave!=null)
		       btnSave.click();
		}
			
	</script>

</head>
<body style =" background-image :url('../images/hit_bg.gif');">
	<% 
		Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
		Response.Expires = 0;
		Response.CacheControl = "no-cache";
	%>
	<form id="form1" runat="server">
		<div>
<table style ="width :98%;"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td  style ="height :10;"></td>
 </tr>
</table>   
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
    <tr>
        <td style ="background-color :#F9F9FB; width :100;" align="right">小类名称</td>
        <td style ="background-color :#F9F9FB;"><asp:TextBox ID="txtSmallClassName" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="不能为空" ControlToValidate="txtSmallClassName"></asp:RequiredFieldValidator></td>
    </tr>
	<tr">
		<td style ="background-color :#F9F9FB;" align="right">排序</td>
		<td style ="background-color :#F9F9FB;"><asp:TextBox ID="txtOrderby" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="不能为空" ControlToValidate="txtOrderby"></asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td height="36" colspan="4" style ="background-color :#F9F9FB;">
			<div align="center">
				<asp:Button ID="btnSave" runat="server" Text="提交" Width="0px" Height="0px" BackColor="White"
					BorderColor="White" ForeColor="White" />
				&nbsp;&nbsp;&nbsp;
				<input type="button" id="Button1" value="提交" class="button02" onclick="CheckFormMenu();" />
				<input type="button" id="btnClose" value="关闭" class="button02" onclick="window.close();" />
			</div>
		</td>
	</tr>
</table>
		</div>
	</form>
</body>
</html>


